﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="fee.aspx.cs" Inherits="student_fee" Title="Student Fee" MaintainScrollPositionOnPostback="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolKit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Student Fee</title>

    <script src="../include/js/form.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" runat="Server">
    <h1>
        Student Fee Setup</h1>
    <h3>
        Setting up student fee.</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" runat="Server">
    <div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td colspan="2">
                                <div class="row_curved" id="divSchoolList" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolList.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Selected School Name" ID="Label2" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlSchoolList" OnSelectedIndexChanged="ddlSchoolList_SelectedIndexChanged"
                                                DataSourceID="ObjectDataSource1" DataTextField="ListText" DataValueField="ListValue" />
                                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="SIS.ENT.Listing"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.ListingManager" UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:Parameter DefaultValue="1" Name="ListType" Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divSchoolMajor" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolMajor.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Major" ID="Label3" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlSchoolMajor" OnSelectedIndexChanged="ddlSchoolMajor_SelectedIndexChanged"
                                                DataSourceID="odsSchoolMajor" DataTextField="Description" DataValueField="SchoolMajorKey" />
                                            <asp:ObjectDataSource ID="odsSchoolMajor" runat="server" DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="GetList" TypeName="SIS.BLL.SchoolMajorTableManager" DataObjectTypeName="SIS.ENT.SchoolMajorTable"
                                                UpdateMethod="Save">
                                                <DeleteParameters>
                                                    <asp:Parameter Name="SchoolMajorKey" Type="Int32" />
                                                </DeleteParameters>
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <asp:RequiredFieldValidator ID="rfvSchoolMajor" ValidationGroup="StudentRegister"
                                                ControlToValidate="ddlSchoolList" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="<br/>Please select a school name.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divStandardLevel" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlStandardLevel.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Standard/Level Name" ID="lblStandardLevel" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlStandardLevel" OnSelectedIndexChanged="ddlStandardLevel_SelectedIndexChanged"
                                                DataSourceID="odsStandarLevel" DataTextField="Description" DataValueField="StandardLevelKey"
                                                Style="height: 22px" />
                                            <asp:ObjectDataSource ID="odsStandarLevel" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="GetList" TypeName="SIS.BLL.StandardLevelTableManager" DataObjectTypeName="SIS.ENT.StandardLevelTable"
                                                DeleteMethod="Delete" UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32"></asp:ControlParameter>
                                                    <asp:ControlParameter ControlID="ddlSchoolMajor" Name="SchoolMajorKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <asp:RequiredFieldValidator ID="rfvStandardLevel" ValidationGroup="StudentRegister"
                                                ControlToValidate="ddlStandardLevel" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="<br/>Please select a standard level.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divLocation" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlLocation.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Location Name" ID="lblLocation" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlLocation" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"
                                                DataSourceID="odsLocation" DataTextField="LocationName" DataValueField="LocationKey"
                                                Style="height: 22px" />
                                            <asp:ObjectDataSource ID="odsLocation" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="GetList" TypeName="SIS.BLL.LocationTableManager" DataObjectTypeName="SIS.ENT.LocationTable"
                                                UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <asp:RequiredFieldValidator ID="rfvLocation" ValidationGroup="StudentRegister" ControlToValidate="ddlLocation"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage="<br/>Please select a standard level.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div7" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlPeriod.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Period" ID="lblPeriodCaption" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlPeriod" OnSelectedIndexChanged="ddlPeriod_SelectedIndexChanged"
                                                DataSourceID="sqlDSEduPeriod" DataTextField="Description" DataValueField="EducationPeriodKey"
                                                Style="height: 22px" />
                                            <asp:SqlDataSource ID="sqlDSEduPeriod" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocEducationPeriodTableSelectList" SelectCommandType="StoredProcedure">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                    <asp:ControlParameter ControlID="ddlLocation" Name="LocationKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                    <asp:ControlParameter ControlID="ddlStandardLevel" Name="StandardLevelKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvPeriod" ValidationGroup="StudentRegister" ControlToValidate="ddlPeriod"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage="<br/>Please select a period.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div1" runat="server">
                                    <label for="<%=ddlFeeTypeCode.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Fee Type" ID="Label1" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlFeeTypeCode" runat="server" DataSourceID="sqlDSFeeTypeCode"
                                                DataTextField="ShortDescription" DataValueField="FeeTypeCode" AutoPostBack="True"
                                                OnSelectedIndexChanged="ddlFeeTypeCode_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            <asp:SqlDataSource ID="sqlDSFeeTypeCode" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocFeeTypeCodeTableSelectList" SelectCommandType="StoredProcedure">
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvFeeTypeCode" ValidationGroup="StudentFee" ControlToValidate="ddlFeeTypeCode"
                                                InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <h3>
                                    Fee List</h3>
                                <asp:GridView ID="grvStudentFee" runat="server" AutoGenerateColumns="False" DataKeyNames="StudentFeeKey"
                                    DataSourceID="sqlDSStudentFee" EmptyDataText="No item found." OnSelectedIndexChanged="grvStudentFee_SelectedIndexChanged"
                                    CellPadding="4" ForeColor="#333333" GridLines="None" Width="750px">
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
                                    <Columns>
                                        <asp:BoundField DataField="StudentFeeKey" HeaderText="StudentFeeKey" InsertVisible="False"
                                            ReadOnly="True" SortExpression="StudentFeeKey" Visible="false" />
                                        <asp:BoundField DataField="StudentFeeCode" ItemStyle-Width="130px" HeaderText="Fee Code" SortExpression="StudentFeeCode" />
                                        <asp:BoundField DataField="EducationPeriodKey" HeaderText="EducationPeriodKey" SortExpression="EducationPeriodKey"
                                            Visible="false" />
                                        <asp:BoundField DataField="FeeTypeCode" HeaderText="FeeTypeCode" SortExpression="FeeTypeCode"
                                            Visible="false" />
                                        <asp:BoundField DataField="Description" ItemStyle-Width="400px" HeaderText="Description" SortExpression="Description" />
                                        <asp:CheckBoxField DataField="Status" HeaderText="Status" Visible="false" SortExpression="Status" />
                                        <asp:BoundField DataField="CreatedDateTime" HeaderText="CreatedDateTime" SortExpression="CreatedDateTime"
                                            Visible="false" />
                                        <asp:BoundField DataField="ModifiedDateTime" HeaderText="Date/Time" SortExpression="ModifiedDateTime" />
                                        <asp:CommandField ShowSelectButton="true" ButtonType="Button" />
                                    </Columns>
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="sqlDSStudentFee" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                    SelectCommand="sprocStudentFeeTableSelectList" SelectCommandType="StoredProcedure">
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="ddlPeriod" Name="EducationPeriodKey" PropertyName="SelectedValue"
                                            Type="Int32" />
                                        <asp:ControlParameter ControlID="ddlFeeTypeCode" Name="FeeTypeCode" PropertyName="SelectedValue"
                                            Type="Int16" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                                <br />
                                <b>Fee Detail List</b>
                                <br />
                                <asp:GridView ID="grvStudentFeeDetail" runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="SFDKey,StudentFeeKey" DataSourceID="sqlDSStudentFeeDetail" EmptyDataText="No item found."
                                    OnSelectedIndexChanged="grvStudentFeeDetail_SelectedIndexChanged" CellPadding="4"
                                    ForeColor="#333333" GridLines="None" Width="750px">
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
                                    <Columns>
                                        <asp:BoundField DataField="SFDKey" HeaderText="SFDKey" InsertVisible="False" ReadOnly="True"
                                            SortExpression="SFDKey" Visible="false" />
                                        <asp:BoundField DataField="StudentFeeKey" HeaderText="StudentFeeKey" ReadOnly="True"
                                            SortExpression="StudentFeeKey" Visible="false" />
                                        <asp:BoundField DataField="Description" ItemStyle-Width="250px" HeaderText="Description" SortExpression="Description" />
                                        <asp:BoundField DataField="Amount" ItemStyle-Width="100px" HeaderText="Amount" DataFormatString="{0:F2}"
                                            SortExpression="Amount" />
                                        <asp:BoundField DataField="AdditionalAmount" ItemStyle-Width="80px" DataFormatString="{0:F2}" HeaderText="Additional"
                                            SortExpression="AdditionalAmount" />
                                        <asp:BoundField DataField="OtherAmount" ItemStyle-Width="80px" DataFormatString="{0:F2}" HeaderText="Others"
                                            SortExpression="OtherAmount" />
                                        <asp:BoundField DataField="DueDate" HeaderText="DueDate" SortExpression="DueDate"
                                            Visible="False" />
                                        <asp:BoundField DataField="FinalDueDate" HeaderText="FinalDueDate" SortExpression="FinalDueDate"
                                            Visible="False" />
                                        <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status"
                                            Visible="False" />
                                        <asp:BoundField DataField="CreatedDateTime" HeaderText="CreatedDateTime" SortExpression="CreatedDateTime"
                                            Visible="false" />
                                        <asp:BoundField DataField="ModifiedDateTime" HeaderText="Date/Time" SortExpression="ModifiedDateTime" />
                                        <asp:CommandField ShowSelectButton="true" ButtonType="Button" />
                                    </Columns>
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Left"/>
                                    <EditRowStyle BackColor="#2461BF" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="sqlDSStudentFeeDetail" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                    SelectCommand="sprocStudentFeeDetailSelectList" SelectCommandType="StoredProcedure">
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="txtStudentFeeKey" Name="StudentFeeKey" PropertyName="Text"
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            </td>
                        </tr>
                    </table>
                    <div style="display: none;">
                        <asp:TextBox runat="server" ID="txtStudentFeeKey" Text="-1" />
                    </div>
                    <br />
                    <AjaxToolKit:TabContainer ID="tbcEntry" runat="server" Visible="true">
                        <AjaxToolKit:TabPanel ID="tbpInfo" runat="server" HeaderText="Information" CssClass="menuHeader"
                            Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="lblInfoHeader" CssClass="menuHeader" runat="server">Fee Group</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <div>
                                                <asp:Label runat="server" ID="lblTopMessage" Text="" Font-Bold="true" Font-Size="Large"
                                                    ForeColor="Red"></asp:Label>
                                                <asp:ValidationSummary ID="vsStudentFee" runat="server" ValidationGroup="StudentFee"
                                                    ShowSummary="True" HeaderText="Please complete all highlighted fields of the form. Thank you."
                                                    CssClass="errorSummary" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <h3>
                                                Fee Setup</h3>
                                            <div class="row_curved" id="divFeeCode" runat="server">
                                                <label for="<%=txtFeeCode.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Fee Code" ID="lblUnitNo" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtFeeCode" Width="120px" MaxLength="50" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvFeeCode" ValidationGroup="StudentFee" ControlToValidate="txtFeeCode"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div2" runat="server">
                                                <label for="<%=txtDescription.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Description" ID="Label4" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtDescription" Width="240px" TextMode="MultiLine" Columns="40"
                                                            Rows="4" MaxLength="255" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvDescription" ValidationGroup="StudentFee" ControlToValidate="txtDescription"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" style="background-color: #efefef;" id="divButton" runat="server">
                                                <label>
                                                    &nbsp;</label>
                                                <div class="field" style="width: 750px;">
                                                    <span class="indicator">
                                                        <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="StudentFee"
                                                            OnClientClick="SubmitOnClientClick(this, 'StudentFee');" runat="server" OnClick="btnSubmit_Click" /></span>
                                                    &nbsp;&nbsp;<asp:Button runat="server" ID="btnNew" Text="New" OnClick="btnAddNew_Click"
                                                        CssClass="button_normal_submit" />
                                                    &nbsp;&nbsp;&nbsp;&nbsp;</div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divMessage" runat="server">
                                                <label>
                                                    &nbsp;</label>
                                                <div class="field">
                                                    <asp:Label ID="lblMessage" Font-Bold="true" ForeColor="Red" runat="server"></asp:Label>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbpSFD" runat="server" HeaderText="Information" CssClass="menuHeader"
                            Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="Label5" CssClass="menuHeader" runat="server">Details Entry</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <div>
                                                <asp:Label runat="server" ID="Label6" Text="" Font-Bold="true" Font-Size="Large"
                                                    ForeColor="Red"></asp:Label>
                                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="StudentFeeDetail"
                                                    ShowSummary="True" HeaderText="Please complete all highlighted fields of the form. Thank you."
                                                    CssClass="errorSummary" />
                                                <asp:RequiredFieldValidator ID="rfvStudentFeeKey" ValidationGroup="StudentFeeDetail"
                                                    ControlToValidate="txtStudentFeeKey" runat="server" CssClass="validationErrorControl"
                                                    InitialValue="-1" Text="Please create or select fee firstly." ErrorMessage=""
                                                    Display="Dynamic"></asp:RequiredFieldValidator>
                                                <asp:Label runat="server" ID="lblSFDKey" Text="-1" Visible="false" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <h3>
                                                Fee Details</h3>
                                            <div class="row_curved" id="div3" runat="server">
                                                <label for="<%=txtFDDescription.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Description" ID="Label8" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtFDDescription" Width="240px" MaxLength="255" TextMode="MultiLine"
                                                            Rows="4" Columns="40" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvFDDescription" ValidationGroup="StudentFeeDetail"
                                                            ControlToValidate="txtFDDescription" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div4" runat="server">
                                                <label for="<%=txtFDAmount.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Amount" ID="Label9" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtFDAmount" Width="160px" MaxLength="12" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvFDAmount" ValidationGroup="StudentFeeDetail" ControlToValidate="txtFDAmount"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div8" runat="server">
                                                <label for="<%=txtFDAddAmount.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Addiontal Amount" ID="Label7" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtFDAddAmount" Width="160px" MaxLength="12" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div9" runat="server">
                                                <label for="<%=txtFDOtherAmount.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Other Amount" ID="Label11" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtFDOtherAmount" Width="160px" MaxLength="12" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" style="background-color: #efefef;" id="div5" runat="server">
                                                <label>
                                                    &nbsp;</label>
                                                <div class="field" style="width: 750px;">
                                                    <span class="indicator">
                                                        <asp:Button ID="btnFDSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="StudentFeeDetail"
                                                            OnClientClick="SubmitOnClientClick(this, 'StudentFeeDetail');" runat="server"
                                                            OnClick="btnFDSubmit_Click" /></span> &nbsp;&nbsp;<asp:Button runat="server" ID="btnFDNew"
                                                                Text="New" OnClick="btnFDAddNew_Click" CssClass="button_normal_submit" />
                                                    &nbsp;&nbsp;&nbsp;&nbsp;</div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div6" runat="server">
                                                <label>
                                                    &nbsp;</label>
                                                <div class="field">
                                                    <asp:Label ID="lblFDMessage" Font-Bold="true" ForeColor="Red" runat="server"></asp:Label>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                    </AjaxToolKit:TabContainer>
                </fieldset>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        //<![CDATA[
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSubmit.ClientID%>'));
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnFDSubmit.ClientID%>'));
        //]]>
    </script>

</asp:Content>
